<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>文字超出省略</title>
  <style>
    .one-row {
      width: 200px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      word-break: normal;
    }
    .rows {
      width: 200px;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
      line-clamp: 3;
      word-break: break-all;
      overflow: hidden;
      max-width: 100%;
    }

  </style>
</head>
<body>
  <!-- 单行文本超出省略 -->
  <div class="one-row">
    单行超出显示单行超出显示单行超出显示单行超出显示单行超出显示单行超出显示
  </div>
  <hr>
  <!-- 多行文本超出省略 -->
  <div class="rows">
    单行超出显示单行超出显示单行超出显示单行超出显示单行超出显示单行超出显示单行超出显示单行超出显示单行超出显示单行超出显示单行超出显示单行超出显示单行超出显示单行超出显示单行超出显示单行超出显示单行超出显示单行超出显示单行超出显示单行超出显示单行超出显示单行超出显示单行超出显示单行超出显示
  </div>
</body>
</html>